Skip to content

Conversation

@kaisecheng
Copy link
Contributor

Add back the decorate(event) to allow add_field enriching event

#58

@donoghuc
Copy link

donoghuc commented Sep 8, 2025

The test failure using logstash main is somewhat concerning. It is using jruby 9.4.14.0 elastic/logstash@fe4a735 and there appears to be a code loading issue.

cc @jsvd who is working on jruby bump.

@donoghuc
Copy link

donoghuc commented Sep 8, 2025

Would it be feasible to add a regression test for enrichment behavior?

@properties_setter.call(event, properties)
end

decorate(event)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we place have an unit test. 🙏

@kaisecheng
Copy link
Contributor Author

@donoghuc @mashhurs I would like to add a regression test as a followup task for all input plugins, like how we did in devutils and beats-input

The test fails in main branch is concerning although I cannot replicate the issue in local environment with jruby 9.4.14.0

I would like to get this merge today before the feature freeze tmr. Is it okay for you both?

Copy link

@donoghuc donoghuc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Follow up separately for regression test addition and CI investigation for main (unreleased stream) seems reasonable given the timeline for release schedule.

@kaisecheng kaisecheng merged commit a924b11 into logstash-plugins:main Sep 8, 2025
2 of 3 checks passed
@kaisecheng
Copy link
Contributor Author

The failure of CI in main branch is caused by LS_JAVA_OPTS="-Djruby.jit.threshold=0" in jruby 9.4.14.0 jruby/jruby#9000

Created an issue to follow up the test #60

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants